<!DOCTYPE html>
<html lang="utf-8">
<head>
    <meta charset="utf-8">
    <title>第一个vue应用</title>
    <script src="../js/vue.min.2.7.0.js"></script>
</head>
<body>
<div id="app">
  <testcomp></testcomp>
    <runoob></runoob>
</div>
<script>
    Vue.component('testcomp',{
        template: '<h1>This is a Vue component test.</h1>'
    })
    new Vue({
        el: '#app',
        components: {
            'runoob': {template: '<lable>test</lable>'}
        }
    })
</script>
</body>
</html>